export default {
	namespaced: true,
	state: () => ({
		vidodata: []
	}),
	actions: {
		addactionim(context, val) {
			console.log(val);
			// console.log(Object.prototype.toString.call(val) );
			if(val.text){
			context.commit('TEXTACTTON', val)
			}else{
			context.commit('TEXTACTTON', 
				JSON.parse(val))
			}
		}
	},
	mutations: {
		IMVIDOACTION(state, data) {
			console.log(data);
			state.vidodata.push(data)
		},
		TEXTACTTON(state, data) {
			console.log(data);
			state.vidodata.push(data)
		}
	}
}
